package com.tanhua.dubbo.api;

import com.tanhua.model.domain.mongo.Movement;
import com.tanhua.model.domain.PageResult;
import org.bson.types.ObjectId;

import java.util.List;

/**
 * @author lk
 * @date 2022-03-26
 */
public interface MovementApi {
    void publish(Movement movement);

    PageResult findByUserId(Long userId, Integer page, Integer pageSize);

    List<Movement> findFriendMovements(Long userId, Integer page, Integer pageSize);

    List<Movement> randomMovements(Integer pagesize);

    List<Movement> findByPids(List<Long> pids);

    Movement findMovement(ObjectId movementId);

    PageResult findByMovement(Integer page, Integer pagesize, Long uid, Integer state);
}
